<div class="request-quote-form">
	<?php if (validation_errors()): ?>
	<div class="error-box">
		<?php echo validation_errors(); ?>
	</div>
	<?php elseif (isset($messages['error'])): ?>
	<div class="error-box">
		<p><?php echo $messages['error']; ?></p>
	</div>
	<?php endif; ?>
	<?php echo form_open(current_url());?>

	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="request_name"><?php echo lang('request_name_label');?></label>
		</div>
		<div class="request-quote-item-right">
		<?php echo form_input('request_name', $form_values->request_name, 'id="request_name"');?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="company_name"><?php echo lang('request_company_name_label');?></label>
		</div>
		<div class="request-quote-item-right">
		<?php echo form_input('company_name', $form_values->company_name, 'id="company_name"');?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="request_email"><?php echo lang('request_email_label');?></label>
		</div>
		<div class="request-quote-item-right">
		<?php echo form_input('request_email', $form_values->request_email, 'id="request_email"');?>
		</div>
		<div class="clear"></div>
	</div>
	
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="request_phone"><?php echo lang('request_phone_number_label');?></label>
		</div>
		<div class="request-quote-item-right">
		<?php echo form_input('request_phone', $form_values->request_phone, 'id="request_phone"'); ?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="project_detail"><?php echo lang('request_project_detail_label'); ?></label>
		</div>
		<div class="request-quote-item-right">
		<?php echo form_textarea( array(  'name'        => 'project_detail',
              'id'          => 'project_detail',
              'value'       => $form_values->project_detail,
              'rows'   => '6',
              'cols'        => '40',
              'style'       => ''));?>
		</div>
		<div class="clear"></div>
	</div>
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			<label for="service_require"><?php echo lang('request_service_require_label');?></label>
		</div>
		<div class="request-quote-item-right">
		<?php 
		if(count($services) > 0){
			$i = 0;
			foreach ($services as $service){
				$i++;
		?>
			<?php echo form_checkbox(array(
			    'name'        => 'service_require[]',
			    'id'          => 'service_require',
			    'value'       => $service->id,
			    'checked'     => FALSE,
			    'style'       => ''
			    )); ?>
			    <label><?php echo $service->name ?></label>
		<?php
				if($i%2 == 0){
					echo "<br/>";
				}
			}
		}
		?>
		
		</div>
		<div class="clear"></div>
	</div>
	
	<div class="request-quote-item">
		<div class="request-quote-item-left">
			&nbsp;
		</div>
		<div class="request-quote-item-right">
			<input type="submit" value="<?php echo lang('request_submit_label') ?>" name="btnSubmit" />
		</div>
		<div class="clear"></div>
	</div>
<?php echo form_close(); ?>
</div>